<template>
	<view class="joinexamination">
		<view class="content">
			<view class="content-topic">
				<view class="topic-title">
					<text>1.是否漏水？</text>
				</view>
				<view class="topic-content">
					<u-radio-group
					    v-model="radiovalue1"
					    placement="column"
					    @change="groupChange"
					  >
					    <u-radio
					      :customStyle="{marginBottom: '8px'}"
					      v-for="(item, index) in radiolist1"
					      :key="index"
					      :label="item.name"
					      :name="item.name"
					      @change="radioChange"
					    >
					    </u-radio>
					  </u-radio-group>
				</view>
			</view>
			<view class="content-topic">
				<view class="topic-title">
					<text>2. 是否漏电？</text>
				</view>
				<view class="topic-content">
					<u-radio-group
					    v-model="radiovalue2"
					    placement="column"
					    @change="groupChange"
					  >
					    <u-radio
					      :customStyle="{marginBottom: '8px'}"
					      v-for="(item, index) in radiolist2"
					      :key="index"
					      :label="item.name"
					      :name="item.name"
					      @change="radioChange"
					    >
					    </u-radio>
					  </u-radio-group>
				</view>
			</view>
			
			<view class="btn">
				<u-button type="primary" text="提交"></u-button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				radiolist1: [{
				    name: '是',
				    disabled: false
				  },
				    {
				      name: '否',
				      disabled: false
				    }
				  ],
				  radiovalue1:'',
				  radiolist2: [{
				    name: '是',
				    disabled: false
				  },
				    {
				      name: '否',
				      disabled: false
				    }
					],
					radiovalue2:''
			}
		},
		methods: {
			back() {
				uni.navigateBack()
			},
			groupChange(n) {
			  console.log('groupChange', n);
			},
			radioChange(n) {
			  console.log('radioChange', n);
			},
		}
	}
</script>

<style lang="scss">
	.joinexamination{
		width: 100%;
		height: 100%;
		background-color: #f6f6f6;
		.head{
			height: 100rpx;
			background-color: #fff;
			.u-count-down{
				color: #1989FA !important;
			}
			/deep/.u-count-down__text{
				color: #1989FA !important;
			}
		}
		.content{
			width: 100%;
			padding: 40rpx 24rpx 60rpx;
			box-sizing: border-box;
			.title{
				width: 702rpx;
				height: 189rpx;
				padding: 0 48rpx;
				box-sizing: border-box;
				background-color: #fff;
				border-radius: 16rpx;
				.title-top{
					width: 100%;
					height: 97rpx;
					line-height: 97rpx;
					text-align: center;
					border-bottom: 1rpx solid #EEEEEE;
					color: #333333;
					font-size: 28rpx
				}
				.title-foot{
					height: 92rpx;
					line-height: 92rpx;
					display: flex;
					justify-content:space-between;
					color: #999999;
					font-size: 28rpx;
				}
			}
			.title-topic{
				width: 100%;
				height: 92rpx;
				// background-color: #1989FA;
				line-height: 110rpx;
				display: flex;
				justify-content:space-between;
				color: #C5C5C5;
				font-size: 24rpx;
			}
			.content-topic{
				width: 702rpx;
				// height: 531rpx;
				padding: 0 48rpx;
				box-sizing: border-box;
				background-color: #fff;
				border-radius: 16rpx;
				margin-bottom: 24rpx;
				.topic-title{
					width: 100%;
					height: 111rpx;
					line-height: 111rpx;
					border-bottom: 1rpx solid #EEEEEE;
					color: #666666;
					font-size: 28rpx;
				}
				.topic-content{
					width: 100%;
					// height: 420rpx;
					
					.u-radio-group{
						width: 100%;
						// height: 100%;
						margin: 0 !important;
						.u-radio{
							width: 100%;
							height: 105rpx;
							line-height: 105rpx;
							margin: 0 !important;
							color: #333333;
							font-size: 28rpx;
						}
					}
					.u-checkbox-group{
						width: 100%;
						// height: 100%;
						margin: 0 !important;
						.u-checkbox{
							width: 100%;
							height: 105rpx;
							line-height: 105rpx;
							margin: 0 !important;
							color: #333333;
							font-size: 28rpx;
						}
					}
				}
			}
			.shortanswer{
				width: 100%;
				padding: 0 48rpx 24rpx;
				box-sizing: border-box;
				background-color: #fff;
				border-radius: 16rpx;
				margin-bottom: 40rpx;
				.shortanswer-title{
					width: 100%;
					height: 111rpx;
					line-height: 111rpx;
					padding-bottom: 10rpx;
					box-sizing: border-box;
					color: #666666;
					font-size: 28rpx;
					.shortanswer-content{
						width: 100%;
						.uni-textarea-wrapper{
							background-color: #F6F6F6 !important;
						}
						
					}
				}
			}
			.btn{
				width: 100%;
				.u-button{
					border-radius: 16rpx;
				}
			}
		}
	}

</style>
